package com.coder520.mamabike.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by ASUS on 2017/8/12.
 */
@Component
public class Parameter {

    /**redis   config**/
    @Value("${redis.host}")
    private String redisHost;

    @Value("${redis.port}")
    private int redisPort;

    @Value("${redis.max-total}")
    private int redisMaxTotal;

    @Value("${redis.max-idle}")
    private int redisMaxIdel;

    @Value("${redis.max-wait-millis}")
    private int redisMaxWaitMillis;
    /**redis end*/

    @Value("#{'${security_none_path}'.split(',')}")
    private List<String> noneSecurityPath;

    /**MiaoDi  SMS*/
    @Value("${ACCOUNT_SID}")
    private String ACCOUNT_SID;

    @Value("${AUTH_TOKEN}")
    private String AUTH_TOKEN;

    @Value("${REST_URL}")
    private String REST_URL;

    /**七牛*/
    @Value("${accessKey}")
    private String accessKey;

    public String getPreff() {
        return preff;
    }

    public void setPreff(String preff) {
        this.preff = preff;
    }

    @Value("${preff}")
    private String preff;

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    @Value("${secretKey}")
    private String secretKey;

    public String getACCOUNT_SID() {
        return ACCOUNT_SID;
    }

    public void setACCOUNT_SID(String ACCOUNT_SID) {
        this.ACCOUNT_SID = ACCOUNT_SID;
    }

    public String getAUTH_TOKEN() {
        return AUTH_TOKEN;
    }

    public void setAUTH_TOKEN(String AUTH_TOKEN) {
        this.AUTH_TOKEN = AUTH_TOKEN;
    }

    public String getREST_URL() {
        return REST_URL;
    }

    public void setREST_URL(String REST_URL) {
        this.REST_URL = REST_URL;
    }

    /**MiaoDi  SMS  end*/

    public List<String> getNoneSecurityPath() {
        return noneSecurityPath;
    }

    public void setNoneSecurityPath(List<String> noneSecurityPath) {
        this.noneSecurityPath = noneSecurityPath;
    }

    public String getRedisHost() {
        return redisHost;
    }

    public void setRedisHost(String redisHost) {
        this.redisHost = redisHost;
    }

    public int getRedisPort() {
        return redisPort;
    }

    public void setRedisPort(int redisPort) {
        this.redisPort = redisPort;
    }

    public int getRedisMaxTotal() {
        return redisMaxTotal;
    }

    public void setRedisMaxTotal(int redisMaxTotal) {
        this.redisMaxTotal = redisMaxTotal;
    }

    public int getRedisMaxIdel() {
        return redisMaxIdel;
    }

    public void setRedisMaxIdel(int redisMaxIdel) {
        this.redisMaxIdel = redisMaxIdel;
    }

    public int getRedisMaxWaitMillis() {
        return redisMaxWaitMillis;
    }

    public void setRedisMaxWaitMillis(int redisMaxWaitMillis) {
        this.redisMaxWaitMillis = redisMaxWaitMillis;
    }
    /**redis   config  end**/
}
